Fix clippy issue
authorFelix Krull <f_krull@gmx.de>
Thu, 31 Oct 2019 12:30:30 +0000 (13:30 +0100)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:54 +0000 (12:53 -0400)
rust-bindings/rust/src/repo_checkout_at_options/repo_checkout_filter.rs

index e1294a541ea1dfb107bbda67338a0a50e3421e71..fc62267eed2e90f25f6c389f4b48bd4c5900db27 100644 (file)
@@ -29,8 +29,7 @@ impl RepoCheckoutFilter {
     /// convenience.
     pub fn new<F>(closure: F) -> Option<RepoCheckoutFilter>
     where
-        F: Fn(&Repo, &Path, &libc::stat) -> RepoCheckoutFilterResult,
-        F: 'static,
+        F: (Fn(&Repo, &Path, &libc::stat) -> RepoCheckoutFilterResult) + 'static,
     {
         Some(RepoCheckoutFilter(Box::new(closure)))
     }